package com.chisheng.caa.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("抽象排课设定信息类")
public abstract class AbstractArrangeCourseSetting extends AbstractSetting implements ArrangeCourseSetting {

    @ApiModelProperty("排课学期")
    protected Semester semester;

    public AbstractArrangeCourseSetting() {
    }

    public AbstractArrangeCourseSetting(ArrangeCourseSetting setting) {
        super(setting);
        this.semester = setting.getSemester();
    }

    @Override
    public Semester getSemester() {
        return semester;
    }

    @Override
    public String toString() {
        return "ArrangeCourseSetting{" +
                "semester=" + semester +
                ", duplicateStrategy=" + duplicateStrategy +
                ", grade=" + grade +
                '}';
    }

}
